package gui.ciclo;

import java.awt.BorderLayout;
import java.awt.Frame;

import javax.swing.JDialog;

public class DialogoAgregarCiclo extends JDialog {

	private static final long serialVersionUID = 1L;
	private PanelAgregarCiclo panelAgregarCiclo = null;
	private static DialogoAgregarCiclo instancia = null;

	private DialogoAgregarCiclo() {

	}

	public static DialogoAgregarCiclo getInstancia() {
		if (instancia == null) {
			instancia = new DialogoAgregarCiclo(null, "Panel Agregar Ciclo");
		}
		return instancia;
	}

	/**
	 * @param owner
	 */
	private DialogoAgregarCiclo(Frame owner, String titulo) {
		super(owner);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		this.setModal(true);
		this.setSize(463, 392);
		this.setContentPane(getPanelCiclo());
		this.setLocationRelativeTo(null);
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private PanelAgregarCiclo getPanelCiclo() {
		if (panelAgregarCiclo == null) {
			panelAgregarCiclo = new PanelAgregarCiclo();
			panelAgregarCiclo.setLayout(new BorderLayout());
		}
		return panelAgregarCiclo;
	}

} // @jve:decl-index=0:visual-constraint="10,10"
